# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=copyq
_pkgname=CopyQ
pkgver=6.2.0
pkgrel=0
pkgdesc="Clipboard manager with searchable and editable history"
url="https://github.com/hluk/CopyQ"
arch="all !armhf" # qt5
license="GPL-3.0-or-later"
makedepends="cmake extra-cmake-modules libxfixes-dev 
	libxtst-dev 
	qt5-qtscript-dev qt5-qtsvg-dev qt5-qttools-dev 
	qt5-qtx11extras-dev qt5-qtwayland-dev
	knotifications-dev"
options="!check" # upstream does not provide check
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/hluk/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prepare() {
	default_prepare
	mkdir "$builddir"/build
}

build() {
	cd "$builddir"/build
	cmake .. \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd "$builddir"/build
	make DESTDIR="$pkgdir" install
}

sha512sums="
7d8fa989f4e6a2aa38e47924561c8c3756042feff1487601fab239532628db81f15b72099ee772570bf14839f2e9a72b278ce02cc5c78b758f4438d93ac59b43  copyq-6.2.0.tar.gz
"
